<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="nextpages">
    <span class="starts"> ${page.pageNo}</span>
    <span class="previous">共${page.lastPage}页</span>
    <c:if test="${page.hasPre}">
        <a href="${page.nextPage}">下一页</a>
    </c:if>
    <c:forEach var="pageNo" begin="1" end="${page.lastPage}" step="1">
        <c:if test="${pageNo == page.pageNo}">
            <a class="page-cur" href="${pageNo}">${pageNo}</a>
        </c:if>
        <c:if test="${pageNo != page.pageNo}">
            <a href="${pageNo}">${pageNo}</a>
        </c:if>
    </c:forEach>
    <c:if test="${page.hasNext}">
        <a href="${page.nextPage}">下一页</a>
    </c:if>
    <a href="${page.lastPage}">末页</a>
</div>
